package br.com.SGF.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


@SuppressWarnings("serial")
@Entity
@Table(name="cadastro_local")
@NamedQueries({
	@NamedQuery(name = "Local.listar", query = "SELECT local FROM LocalDomain local"),
	@NamedQuery(name = "Local.obterCodigo", query = "SELECT local  FROM LocalDomain local where codigo = :codigo") })
public class LocalDomain implements Serializable{

	@Id
	@GeneratedValue (strategy = GenerationType.AUTO)
	@Column (name = "clo_id")
	private int codigo;
	
	@Column (name = "clo_descricao")
	private String descricao;
	
	@Column (name = "clo_inativo", columnDefinition = "tinyint default false")
	private boolean inativo;

	public int getCodigo() {
		return codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public boolean isInativo() {
		return inativo;
	}

	public void setInativo(boolean inativo) {
		this.inativo = inativo;
	}
	


}
